The table of
contents is normally inserted directly before the first headline
of the file. If you would like to get it to a different location,
insert the string [TABLE-OF-CONTENTS] on a line by
itself at the desired location. The depth of the table of
contents is by default the same as the number of headline levels,
but you can choose a smaller number, or turn off the table of
contents entirely, by configuring the variable
org-export-with-toc, or on a per-file basis with a
line like
#+OPTIONS: toc:2 (only to two levels in TOC)
#+OPTIONS: toc:nil (no TOC at all)